﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class BirdType:Animal
    {
        public BirdType(string leg, string eat, string sleep, string jiao)
        : base(leg, eat, sleep, jiao)
        {
        }

        public string fly { get; set; }
        public BirdType() { }
        public void fly1()
        {
            Console.WriteLine("我会飞");
        }
    }
    class CatType : Animal
    {
        public CatType(string leg, string eat, string sleep, string jiao)
      : base(leg, eat, sleep, jiao)
        {
        }

        public CatType() { }

        public void pa1()
        {
            Console.WriteLine("我会上树！");
        }
    }
}
